# coding:utf-8
from main.ext import db
from main import create_app
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand

app = create_app("dev")
manager = Manager(app)
Migrate(app,db)
manager.add_command("db",MigrateCommand)

if __name__ == '__main__':
    manager.run()
#http://127.0.0.1:5000/api/v1.0/index
# python manager.py db init #命令行执行
#python manager.py db migrate
#python manager.py db upgrade
#python manager.py db history
#python manager.py db downgrade 0fa2e59acff7 #回退
#pip freeze >requirements.txt
#pip install -r requirements.txt